<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title></title>
    <link rel="stylesheet" type="text/css" href="/tp/Public/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="/tp/Public/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="/tp/Public/css/style.css"/>
</head>

<body>
<div id="container">
    <!---->

    <include file="Public/tpl/header.html" />

    <!---->

    <div id="main" class="container">
        <div class="row">
            <div class="col-md-8">

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title"><b>搜索:结果</b></h3>
                    </div>
                    <div class="panel-body">
                            <div class="panel panel-default">
                                <div class="panel-heading">
                                    <h3 class="panel-title">匹配帖子</h3>
                                </div>
                                <if condition="$articles eq null">
                                    <div class="panel-body">
                                    匹配不到帖子
                                    </div>
                                <else/>
                                    <div class="panel-body">
                                        <ul class="media list-group">
                                            <foreach name="articles" item="article" key="key">
                                                <li class="list-group-item">
                                                    <a class="media-left" href="{:U('User/info',array('id'=>$article['author_id']))}">
                                                        <img src="__PUBLIC__/images/{$article['avatar_name']}" alt="作者"
                                                             style="width:50px;height: 50px ;">
                                                    </a>

                                                    <div class="media-body">
                                                        <h3 class="media-heading topic-list-heading">
                                                            <span><i class="icon-screenshot icon"></i></span>
                                                            <span><a href="{:U('Article/detail',array('id'=>$article['id']))}">{$article['title']}</a></span>
                                                        </h3>

                                                        <p class="text-muted">
                                                            <span><i class="icon-pushpin"></i></span>
                                                            <span><a href="{:U('Sort/detail',array('id'=>$article['sort_id']))}">{$article['sort']}</a></span>
                                                            <span>|</span>
                                                            <span><a href="{:U('User/info',array('id'=>$article['author_id']))}">{$article['author']}</a></span>
                                                            <span>|</span>
                                                            <span>{$article['create_time']}</span>
                                                            <span>|</span>
                                                    <span>
                                                        <if condition="($article['last_comment'] neq null)">
                                                            最后回复:{$article['last_comment']}
                                                            By <a href="{:U('User/info',array('id'=>$article['last_comment_user_id']))}">{$article['last_comment_user_name']}</a>
                                                            <else/>
                                                            暂无回复
                                                        </if>
                                                    </span>
                                                        </p>
                                                    </div>
                                                </li>

                                            </foreach>
                                        </ul>
                                    </div>
                                </if>
                            </div>

                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h3 class="panel-title">匹配用户</h3>
                            </div>
                            <if condition="$users eq null">
                                <div class="panel-body">
                                    匹配不到用户
                                </div>
                            <else/>
                                <div class="panel-body">
                                    <div class="media list-group photos-rows">
                                        <foreach name="users" item="user" key="key">
                                            <div class="col-md-1 photo-rows">
                                                <a class="" href="{:U('User/info',array('id'=>$user['id']))}">
                                                    <img src="__PUBLIC__/images/{$user['avatar_name']}" alt="作者">
                                                </a>
                                            </div>
                                        </foreach>
                                    </div>
                                </div>
                            </if>
                        </div>
                    </div>
                </div>


            </div>

            <div class="col-md-4">



            </div>
        </div>

    </div>

    <!---->
</div>
<!---->

<include file="Public/tpl/footer.html" />
<!---->
<script src="/tp/Public/js/jquery-1.11.0.js" type="text/javascript" charset="utf-8"></script>
<script src="/tp/Public/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
</body>

</html>